package com.ybwh.springboot1.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.ybwh.springboot1.annotation.LoginRequired;
import com.ybwh.springboot1.common.UserInfo;


/**
 * 欢迎页逻辑
 */
@LoginRequired
@Controller
@RequestMapping("/")
public class WelcomeController {
	@RequestMapping("/welcome")
	public ModelAndView welcome(UserInfo userInfo) {
		ModelAndView mav = new ModelAndView("/welcome");
		mav.addObject("userInfo", userInfo);
		return mav;
	}
}
